/* 管理员模块
 * @Author: Leil
 * @Date: 2018-08-20 11:38:45 
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2018-08-21 15:38:14
 */
const Admin = require('../lib/mongo').Admin

module.exports = {
    getAdminByName: function (name) {
        // console.log('getAdminByName ' + name)
        return Admin
            .findOne({name: 'admin'})
            .exec()
    }
}